import java.util.Scanner;

class cmp{
    public int max1(int a,int b)
    {
    return a>b? a:b;
    }
    public int max2(int a,int b,int c)
    {
        return max1(a,b)>c? max1(a,b):c;
    }

    public static void main(String[] args) {
        cmp c = new cmp();
        int max1 = c.max1(5,6);
        System.out.println(max1);
        int max2 = c.max2(5,6,9);
        System.out.println(max2);
    }

}
public class test {



    public static void main3(String[] args) {
        String password = "chen0130";
        int i = 3;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入密码：");
        do {
            String a = sc.next();
            if (i==0) {
                System.out.println("输入密码错误次数达到上限！");
                break;
            }
            if(password.equals(a))
            {
                System.out.println("登录成功！");
                break;
            }
            else
            {
                System.out.println("密码错误！你还有"+i+"次机会尝试登录");
                i--;

            }
        }while (true);

    }




    public static void main2(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int num = 0;
      int i = 0;
      int[] arr = new int[10];
      while(true)
      {
        if(a!=0){
            num = a %10;
            arr[i] = num;
            a = a/10;
            i++;
        }
        else
        {
            break;
        }

      }
        for(int j = i;j>0;j--)
        {
            System.out.print(arr[j-1]+" ");
        }

    }




    public static void main1(String[] args) {
        int  i = 0;
        float sum = 0l ;
        for( i = 1;i <= 100;i++)
        {

            if( i%2 != 0)
            {
                sum += 1/(i*1.0);
            }
            else
            {
                sum -= 1/(i*1.0);
            }
        }
        System.out.println(sum);
    }
}
